package com.flyduck.system.vo.config.trans;


import cn.hutool.core.bean.BeanUtil;
import com.flyduck.system.entity.SysConfigEntity;
import com.flyduck.system.vo.config.SysConfigUpdateReqVO;
import com.google.common.base.Function;


/**
 * @program: flyduck-platform
 * @description:
 * @author: flyduck
 * @create: 2021-02-01 12:42
 **/
public class SysConfigUpdateReqVOToSysConfigEntity implements Function<SysConfigUpdateReqVO, SysConfigEntity> {

    @Override
    public SysConfigEntity apply(SysConfigUpdateReqVO reqVO) {
        SysConfigEntity entity = new SysConfigEntity();
        BeanUtil.copyProperties(reqVO,entity);
        entity.setId(Long.valueOf(reqVO.getId()));
        return entity;
    }
}
